/**
 * 
 */
package com.cchr.acms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cchr.acms.dao.AbusedPersonDAO;
import com.cchr.acms.model.AbusedPerson;
import com.cchr.acms.service.AbusedPersonService;

/**
 * @author Zeng
 *
 */
@Service
public class AbusedPersonServiceImpl implements AbusedPersonService{
 
    @Autowired
    private AbusedPersonDAO abusedPersonDAO;
     
    public int insertAbusedPerson(AbusedPerson user) {
        return abusedPersonDAO.insertAbusedPerson(user);
    }
    
    public int updateAbusedPerson(AbusedPerson user){
    	return abusedPersonDAO.updateAbusedPerson(user);
    }
    
    public AbusedPerson getAbusedPersonByCaseId(int caseId){
    	return abusedPersonDAO.getAbusedPersonByCaseId(caseId);
    }

	public void deleteAbusedPersonByCaseId(int caseId) {
		abusedPersonDAO.deleteAbusedPersonByCaseId(caseId);
	}
}
